package net.csdn.business.common.oauth2.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.domain.SuperEntity;


/**
 * oauth应用管理对象 oauth_client_info
 * 
 * @author zhangyl
 * @date 2022-11-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("oauth_client_info")
public class OauthClientInfo extends SuperEntity<OauthClientInfo>
{
    private static final long serialVersionUID = 1L;

    /** 配置id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 分布式id */
    private String objectId;

    /** 应用名称 */
    private String clientName;

    /** 应用的clientId */
    private String clientId;

    /** 应用的clientSecret */
    private String clientSecret;

    /** 应用logo */
    private String logo;

    /** 应用描述 */
    private String clientDesc;

    /** 应用主页 */
    private String clientIndex;

    /** 资源服务器id集合 */
    private String resourceIds;

    /** 客户端授权的scope */
    private String scope;

    /** 支持的授权类型 */
    private String authorizedGrantTypes;

    /** 回调地址 */
    private String webServerRedirectUri;

    /** authorities权限 */
    private String authorities;

    /** acessToken有效期，单位s */
    private Integer accessTokenValidity=60*60*24;

    /** refreshToken有效期，单位s */
    private Integer refreshTokenValidity=60*60*24*7;

    /** 附加信息 */
    private String additionalInformation;

    /** 是否自动审核：true:是；false:否 */
    private String autoapprove="false";

}
